<template>
  <div class="app">
    <!-- 路由视图 - 根据当前路由渲染对应组件 -->
    <router-view />
  </div>
</template>

<style scoped>
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  background-color: #2c3e50;
  color: white;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.title {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

.main {
  flex: 1;
  padding: 20px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 15px 20px;
  margin-top: auto;
}

.footer p {
  margin: 0;
}

/* ElementPlus Tabs样式优化 */
:deep(.el-tabs__header) {
  margin: 0 0 20px 0;
}

:deep(.el-tabs__content) {
  padding: 0;
}
</style>
